 function loadrssbyfeed(rss, byID,targetTo) {
	/*by KhmerMovies.co : please don't remove*/
	$.ajax({
		url : '' + rss + '&alt=json-in-script&callback=?',
		type : 'get',
		dataType : "jsonp",
		success : function (data) {
			var posturl = "";
			var htmlcode = '<ul class="label_with_thumbs">';
			for (var i = 0; i < data.feed.entry.length; i++) {
              if(i==0) {
				var class_addon = 'firstpost';
              } else {
				var class_addon = '';
              }

				var postlimon = "";
				for (var j = 0; j < data.feed.entry[i].link.length; j++) {
					if (data.feed.entry[i].link[j].rel == "alternate") {
						posturl = data.feed.entry[i].link[j].href;
					}
					if (data.feed.entry[i].link[j].href == "http://title.com") {
						postlimon = data.feed.entry[i].link[j].type;
					}
				}

				if ("content" in data.feed.entry[i]) {
					var postcontent = data.feed.entry[i].content.$t;
				} else if ("summary" in data.feed.entry[i]) {
					var postcontent = data.feed.entry[i].summary.$t;
				} else {
					var postcontent = "";
				}
				var re = /<\S[^>]*>/g;
				postcontent = postcontent.replace(re, "");
				//reduce postcontent to 200 characters
				if (postcontent.length > 200) {
					postcontent = postcontent.substring(0, 200);
				}
				var origintitle = data.feed.entry[i].title.$t;
				var post_url = posturl.replace('news.hetkar.com', 'hetkar.com');
              if(postlimon) {
				var posttitle = '<h2 class="titlekhmer"><a href="' + post_url + '" target="'+targetTo+'">' + postlimon + '</a></h2>';
              } else {
				var posttitle = '<h2 class="titlelabel"><a href="' + post_url + '" target="'+targetTo+'">' + origintitle + '</a></h2>';
              }
				//var posttitle = data.feed.entry[i].title.$t;

				var thumburl;
				try {
					thumburl = entry.media$thumbnail.url;
				} catch (error) {
					s = data.feed.entry[i].content.$t;
					a = s.indexOf("<img");
					b = s.indexOf("src=\"", a);
					c = s.indexOf("\"", b + 5);
					d = s.substr(b + 5, c - b - 5);
					if ((a != -1) && (b != -1) && (c != -1) && (d != "")) {
						thumburl = d;
					} else
						thumburl = 'http://1.bp.blogspot.com/_u4gySN2ZgqE/SosvnavWq0I/AAAAAAAAArk/yL95WlyTqr0/s400/noimage.png';

				}
				htmlcode += '<li class="clearfix '+class_addon+'"><a href="' + post_url + '" title="' + origintitle + '" target="'+targetTo+'"><img class="label_thumb" src="' + thumburl + '"/><span class="ico-play"></span></a>' + posttitle + '</li>';

			}
			htmlcode += '</ul>';
			document.getElementById(byID).innerHTML = htmlcode;
			//$(byID).html(htmlcode);
			$('#resultsload').append('<input type="hidden" id="loadby' + byID +'" name="loadby' + byID +'" value="1" />');
		}
	});
}

 var message = "Function Disabled!";
            ///////////////////////////////////
            function clickIE() {
                if (document.all) {
                    (message);
                    return false;
                }
            }
            function clickNS(e) {
                if
                        (document.layers || (document.getElementById && !document.all)) {
                    if (e.which == 2 || e.which == 3) {
                        (message);
                        return false;
                    }
                }
            }
            if (document.layers)
            {
                document.captureEvents(Event.MOUSEDOWN);
                document.onmousedown = clickNS;
            }
            else {
                document.onmouseup = clickNS;
                document.oncontextmenu = clickIE;
            }

            document.oncontextmenu = new Function("return false")